import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";

export const feachArtistInfoAction = createAsyncThunk("artistInfo", (id: number, { dispatch }) => {

})

interface Istate {
  artistInfo: any
}

const initialState: Istate = {
  artistInfo: {}
}

const ArtistSlice = createSlice({
  name: 'artist',
  initialState,
  reducers: {
    changeArtistInfo(state, { payload }) {
      state.artistInfo = payload
    }
  }
})

export default ArtistSlice.reducer